package org.elanfox.intellicommunity.biz.repository.msg;

import org.elanfox.intellicommunity.biz.entity.msg.AlarmMsgGroupPO;
import org.elanfox.intellicommunity.common.ienum.MsgEnums;
import org.elanfox.intellicommunity.data.base.base.JpaSearchableRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/26
 */
@Repository
public interface AlarmMsgGroupRepository extends JpaSearchableRepository<AlarmMsgGroupPO, Long> {
    List<AlarmMsgGroupPO> findByAlarmStatusOrderByCreateTimeDesc(MsgEnums.AlarmStatus alarmStatus);

    List<AlarmMsgGroupPO> findByAlarmStatusInOrderByCreateTimeDesc(List<MsgEnums.AlarmStatus> alarmStatus);
}
